<template>
  <div class="workshop-chart common-tabs-wrapper">
    <el-tabs v-model="activeName" type="card">
      <el-tab-pane
        v-for="(item, index) in tabList"
        :label="item.label"
        :name="item.name"
        :key="index"
      >
        <div class="tool-box">
          <div class="common-title">{{ item.label }}工序</div>
          <div class="btn-list">
            <el-button type="primary" icon="el-icon-refresh" size="small"
              >60s</el-button
            >
            <el-button size="small" icon="el-icon-folder-add">导出</el-button>
          </div>
        </div>
      </el-tab-pane>
    </el-tabs>
  </div>
</template>

<script>
export default {
  data() {
    return {
      activeName: 'qinghua',
      tabList: [
        {
          label: '清花',
          name: 'qinghua'
        },
        {
          label: '梳棉',
          name: 'shumian'
        },
        {
          label: '并条',
          name: 'bingtiao'
        },
        {
          label: '粗纱',
          name: 'cusha'
        },
        {
          label: '细纱',
          name: 'xisha'
        },
        {
          label: '络筒',
          name: 'luotong'
        }
      ]
    };
  },
  methods: {}
};
</script>

<style lang="scss" scoped>
@import '~@/assets/css/workshop.scss';
.tool-box {
  display: flex;
  justify-content: space-between;
}
</style>
